package com.qiaofang.applet.service.other.domain;

import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document(collection = "other_yx_im_message")
@ApiModel("网易云信IM历史消息表")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class YxImMessage extends BaseDomain {

    @ApiModelProperty("用户accid")
    private String fromAccid;

    @ApiModelProperty("会话类型")
    private String eventType;

    @ApiModelProperty("会话具体类型")
    private String convType;

    @ApiModelProperty("发送客户端类型")
    private String fromClientType;

    @ApiModelProperty("聊天对象")
    private String toAccid;

    @ApiModelProperty("消息类型")
    private String msgType;

    @ApiModelProperty("最后一条消息")
    private String lastmsgtext;

    @ApiModelProperty("业务Uuid")
    private String businessUniqueUuid;

    @ApiModelProperty("业务类型")
    private String businessType;

    @ApiModelProperty("消息发送时间")
    private Date msgTimestamp;

    @ApiModelProperty("定时任务处理标识")
    private Boolean cronOpFlag;
}

